package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.SysPushRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

/**
 * 消息推送Mapper接口
 *
 * @author ruoyi
 * @date 2025-08-31
 */
public interface SysPushRecordMapper
{
    /**
     * 查询消息推送
     *
     * @param id 消息推送主键
     * @return 消息推送
     */
    public SysPushRecord selectSysPushRecordById(Long id);

    /**
     * 查询消息推送列表
     *
     * @param sysPushRecord 消息推送
     * @return 消息推送集合
     */
    public List<SysPushRecord> selectSysPushRecordList(SysPushRecord sysPushRecord);
    public List<SysPushRecord> selectAppSysPushRecordList(SysPushRecord sysPushRecord);

    /**
     * 新增消息推送
     *
     * @param sysPushRecord 消息推送
     * @return 结果
     */
    public int insertSysPushRecord(SysPushRecord sysPushRecord);
    void batchInsertSysPushRecord(@Param("list") List<SysPushRecord> list);

    /**
     * 修改消息推送
     *
     * @param sysPushRecord 消息推送
     * @return 结果
     */
    public int updateSysPushRecord(SysPushRecord sysPushRecord);

    /**
     * 删除消息推送
     *
     * @param id 消息推送主键
     * @return 结果
     */
    public int deleteSysPushRecordById(Long id);

    /**
     * 批量删除消息推送
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysPushRecordByIds(String[] ids);

    List<Long> selectReceiveUserList(@Param("batchNo") String batchNo);

    Integer queryByReceiveUserId(@Param("userId") Long userId, @Param("recordId") Long recordId);
}
